#include"process.h"
#include<unistd.h>

double target_file_size =1024.0;
double speed = 1.0;
void DownLoad(double size,double split)
{
  double current_total=0.0;
  while(current_total<=size)
  {
    FlushProcess(size,current_total);
    usleep(5000);
    current_total+=split;
  }
}
int main()
{
  printf("爱老婆中\n");
  DownLoad(target_file_size,0.5);
  return 0;
}
